Show the code
import pandas as pd
import numpy as np
from lets_plot import *
LetsPlot.setup_html(isolated_frame=True)import pandas as pd
import numpy as np
from lets_plot import *
LetsPlot.setup_html(isolated_frame=True)For Project 1 the answer to each question should include a chart and a written response. The years labels on your charts should not include a comma. At least two of your charts must include reference marks.
import os
os.getcwd()
from p1_source import myNamePlotData
myNamePlotData| name | year | Total | |
|---|---|---|---|
| 86274 | Dallin | 1972 | 5.0 |
| 86275 | Dallin | 1978 | 6.0 |
| 86276 | Dallin | 1979 | 12.0 |
| 86277 | Dallin | 1980 | 9.0 |
| 86278 | Dallin | 1981 | 8.0 |
| 86279 | Dallin | 1982 | 14.0 |
| 86280 | Dallin | 1983 | 5.0 |
| 86281 | Dallin | 1984 | 32.0 |
| 86282 | Dallin | 1985 | 52.0 |
| 86283 | Dallin | 1986 | 51.0 |
| 86284 | Dallin | 1987 | 44.0 |
| 86285 | Dallin | 1988 | 71.0 |
| 86286 | Dallin | 1989 | 72.0 |
| 86287 | Dallin | 1990 | 73.0 |
| 86288 | Dallin | 1991 | 79.0 |
| 86289 | Dallin | 1992 | 91.0 |
| 86290 | Dallin | 1993 | 135.0 |
| 86291 | Dallin | 1994 | 132.0 |
| 86292 | Dallin | 1995 | 121.0 |
| 86293 | Dallin | 1996 | 142.0 |
| 86294 | Dallin | 1997 | 153.0 |
| 86295 | Dallin | 1998 | 159.0 |
| 86296 | Dallin | 1999 | 189.0 |
| 86297 | Dallin | 2000 | 187.0 |
| 86298 | Dallin | 2001 | 186.0 |
| 86299 | Dallin | 2002 | 198.0 |
| 86300 | Dallin | 2003 | 173.0 |
| 86301 | Dallin | 2004 | 155.0 |
| 86302 | Dallin | 2005 | 145.0 |
| 86303 | Dallin | 2006 | 133.0 |
| 86304 | Dallin | 2007 | 151.0 |
| 86305 | Dallin | 2008 | 151.0 |
| 86306 | Dallin | 2009 | 92.0 |
| 86307 | Dallin | 2010 | 91.0 |
| 86308 | Dallin | 2011 | 87.0 |
| 86309 | Dallin | 2012 | 68.0 |
| 86310 | Dallin | 2013 | 62.0 |
| 86311 | Dallin | 2014 | 66.0 |
| 86312 | Dallin | 2015 | 35.0 |
How does your name at your birth year compare to its use historically?
_my name, “Dallin” occured most about 3 years after I was born, but the name had been trending up from obscurity for almost 8 years before my birth in 1996.
from p1_source import myNamePlot
myNamePlotIf you talked to someone named Brittany on the phone, what is your guess of his or her age? What ages would you not guess?
The dataset indicates that Britanys of age 35 (in 2025) are most common.There are very few people by that name older than 50, and only a few younger than 19.
from p1_source import brittanyPlot
brittanyPlotMary, Martha, Peter, and Paul are all Christian names. From 1920 - 2000, compare the name usage of each of the four names in a single chart. What trends do you notice?
all names have a dip starting after about 1925, and a massive boom during the war years, with a peak after the end of the war.
from p1_source import q3DataPlot
q3DataPlotthis graph attempts to normalize the data relative to their frequency in 1920. they seem to follow a really similar pattern, but with peter being the most strongly affected
from p1_source import q3DataPlotAlt
q3DataPlotAltThink of a unique name from a famous movie. Plot the usage of that name and see how changes line up with the movie release. Does it look like the movie had an effect on usage?
type your results and analysis here
# Include and execute your code hereReproduce the chart Elliot using the data from the names_year.csv file.
type your results and analysis here
# Include and execute your code here